﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace wmvSegments
{
    class Program
    {
        static void wmvCutConsoleLog(object sender, DataReceivedEventArgs e)
        {
            System.Console.Write(e.Data);
        }

        static void Main(string[] args)
        {
            System.Console.Write("\r\nCut wmv to small segments and combine to one file,\r\nuse the py project file exported from Avidemux\r\n");
            if (args.Length != 2)
            {
                System.Console.Write("\r\nUsage: wmvseg.exe [pyfile] [outputfile]\r\n\r\n\r\n");
                return;
            }

            string segmentFile = args[0];
            string outputPath = args[1];

            wmvCut cut = new wmvCut(segmentFile, outputPath, wmvCutConsoleLog);
            cut.cut();
        }
    }
}
